package com.ruoyi.config;

import com.ruoyi.common.utils.spring.SpringUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Component
@Configuration
public class SecurityConfig {
    @Value("${security.host}")
    private String host;

    @Value("${security.token}")
    private String token;

    @Value("${security.callbackBaseUrl}")
    private String callbackBaseUrl;

    public static SecurityConfig getInstance() {
        return SpringUtils.getBean(SecurityConfig.class);
    }
}
